package com.tzb.ssm.entity.admin;

import org.springframework.stereotype.Component;

/**
 * @Description 用户实体类
 * @Author tzb
 * @Date 2021/6/5 16:52
 * @Version 1.0
 **/
@Component
public class User {

    /**
     * 用户id,自增
     */
    private Long id;
    private String username;
    private String password;

    /**
     *  头像照片地址
     */
    private String photo;

    /**
     * 0-未知，1-男，2-女
     */
    private String sex;
    private Integer age;
    private String address;

    public User() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
